  import { useState } from "react"
  import Login from "./components/Login"
 import Reg from "./components/Reg"
 import List from "./components/List"
 import StateDemo from "./components/UseStateDemo"
function App() {

   const [isShow,setIshow]= useState(true);

  const hidde=()=>{

    setIshow(false);

  }

  return (
    <div className="App">


      {
        isShow &&
        <StateDemo></StateDemo>
      }

      {/* {isShow} */}
      {/* <Login msg="养老机构"></Login>  */}
  
     {/* <Reg></Reg>  */}

     {/* {
          isShow &&
          <List></List>

     }

    

     <button onClick={()=>hidde()}>隐藏</button> */}
      <button onClick={()=>hidde()}>隐藏</button>
    </div>
  )
}

export default App
